package design.dynamicFactory;

/**
 * \* User: Administrator
 * <p>
 * \* Date: 2020/9/21
 * <p>
 * \* Time: 14:23
 * <p>
 * \* Description:
 * \
 */
public class NvWa {
    public static void main(String[] args) {
        HumanFactory maleFactory = new MaleFactory();
        HumanFactory femaleFactory = new FemaleFactory();

        Human blackHuman = maleFactory.createBlackHuman();
        Human whiteHuman = maleFactory.createWhiteHuman();
        Human yellowHuman = maleFactory.createYellowHuman();

        Human blackHuman1 = femaleFactory.createBlackHuman();
        Human whiteHuman1 = femaleFactory.createWhiteHuman();
        Human yellowHuman1 = femaleFactory.createYellowHuman();

    }
}
